/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-17 16:00:22
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-05-11 17:13:44
 * @FilePath: \driving-training-admin\src\views\classManagement\class\edit\formConfig.ts
 */
import { PropsFormpData } from '@/utils/interface'

export const data: PropsFormpData[] = [
    [
        {
            key: 'schoolId',
            label: '所属驾校：',
            placeholder: '请选择所属驾校',
            value: '',
            type: 'select',
            width: 2,
            required: true,
            message: '请选择',
            trigger: 'change',
            valid: true,
            options: []
        }
    ],
    [
        {
            key: 'classNumber',
            label: '班别编号：',
            placeholder: '请输入',
            required: true,
            message: '请输入班别编号',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'className',
            label: '班别名称：',
            placeholder: '请输入',
            required: true,
            message: '请输入班别名称',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'signUpMsg',
            label: '报名情况：',
            placeholder: '请输入',
            required: true,
            message: '请输入报名情况',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'classTag',
            label: '班别标签：',
            required: true,
            message: '请输入班别标签',
            value: [],
            type: 'tag',
            width: 4,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'classExplain',
            label: '班别说明：',
            placeholder: '',
            required: true,
            message: '请输入班别说明',
            value: [],
            type: 'labelList',
            hasSort: false,
            width: 4,
            trigger: 'blur',
            count: 3,
            valid: true
        }
    ],
    [
        {
            key: 'classVideoPic',
            label: ' 班别视频及展示图：',
            required: true,
            message: '请上传班别视频及展示图',
            value: [],
            type: 'file',
            width: 4,
            imageCount: 5,
            videoCount: 2,
            count: [],
            tagVisible: true,
            hint: '仅支持png、jpg格式，大小不超过5M，图片尺寸 750x562',
            trigger: 'blur',
            valid: true,
            dirType: 'class',
            sizeRatio: [10, 7.5]
        }
    ],
    [
        {
            key: 'classIntroduction',
            label: '班别介绍说明：',
            placeholder: '',
            required: true,
            message: '',
            value: '课程内容',
            index: 0,
            type: 'radio-button',
            width: 3,
            trigger: 'blur',
            options: [],
            valid: true,
            radioList: ['课程内容', '费用清单', '学习流程', '退款说明', '班别视频介绍'],
            content: []
        }
    ]
]
